package com.chinasoft.tw.service.lxg;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;
import org.springframework.util.AutoPopulatingList;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class LiangXinGuang implements TrueWord {

    String name;

    List<String> wordList = new ArrayList<>();

    Random random = new Random();

    public LiangXinGuang(){
        this.name="梁鑫光";
        wordList.add("火力少年王");
        wordList.add("好吃");
    }
    @Override
    public Info getTrueWord() {
        int index=random.nextInt(wordList.size());
        Info info=new Info(name,wordList.get(index));
        return null;
    }
}
